package com.game.doudizhu.repository;

import com.game.doudizhu.model.Achievement;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface AchievementRepository extends JpaRepository<Achievement, Long> {
    
    Integer countByPlayerId(Long playerId);
    
    boolean existsByPlayerIdAndType(Long playerId, String type);
} 